<%@ Page language="c#" Inherits="hemsidan.change.ManagePageText" CodeFile="ManagePageText.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD runat=server>
		<title>ManagePageText</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  </HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<asp:DataGrid id="dgPageTexts" runat="server" AutoGenerateColumns="False" DataKeyField="Id" GridLines="None">
<HeaderStyle CssClass="dgHeader">
</HeaderStyle>

<Columns>
<asp:BoundColumn DataField="PageName" HeaderText="Page Name"></asp:BoundColumn>
<asp:BoundColumn DataField="Header" HeaderText="Rubrik"></asp:BoundColumn>
<asp:BoundColumn DataField="TextField" HeaderText="Text"></asp:BoundColumn>
<asp:ButtonColumn Text="Ta Bort" ButtonType="PushButton" CommandName="Delete"></asp:ButtonColumn>
<asp:ButtonColumn Text="Editera" ButtonType="PushButton" CommandName="Edit"></asp:ButtonColumn>
</Columns>
			</asp:DataGrid>
			<table>
				<tr>
					<td>Page Namn:</td>
					<td><asp:TextBox id="txtPageName" runat="server"></asp:TextBox></td>
					<td>Header</td>
					<td><asp:TextBox id="txtHeader" runat="server"></asp:TextBox></td>
				</tr>
				<tr>
					<td valign="top">Text:<br>
						Max 255 tecken</td>
					<td colspan="3"><asp:TextBox id="txtText" runat="server" TextMode="MultiLine" Width="400px"></asp:TextBox></td>
				</tr>
				<tr>
					<td>
						<asp:Button id="btnCancel" runat="server" Text="Avbryt" onclick="btnCancel_Click"></asp:Button>
						<asp:Button id="btnSave" runat="server" Text="Spar" onclick="btnSave_Click"></asp:Button>
						<asp:TextBox id="txtPageTextId" runat="server" Visible="False">0</asp:TextBox>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
